﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using PIUMania.Entidades;
using PIUMania.BLL;

namespace PIUMania.WCF.Recorde
{
    public class RecordeService : IRecordeService
    {
        public RecordResponse gravaRecorde(RecordeRequest jsonRecordeRequest)
        {
            RecordeBLL.Instance.registraMock(jsonRecordeRequest);

            RecordResponse resposta = RecordResponse.mockTeste(jsonRecordeRequest.grade.great, jsonRecordeRequest.usuario.nome);

            return resposta;
        }

        public List<RecordeRequest> buscaRecordes(RecordeRequest jsonHistoryRequest)
        {
            return RecordeBLL.Instance.listaMock();
        }
    }
}
